// log.h: interface for the CLLog class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LOG_H__0F312A86_6152_4BEC_B4A0_CD892946B760__INCLUDED_)
#define AFX_LOG_H__0F312A86_6152_4BEC_B4A0_CD892946B760__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "str.h"	// Added by ClassView
#include "file.h"
#include <stdio.h>

class CLLog:public CLFile  
{
	int m_pid;
public:
	int log_time();
	int printf(LPCSTR fmt,...);
	int log_data(LPCSTR buf, int len) { log_time(); this->write(buf, len); this->fprintf("\n"); }
	CLLog(LPCSTR filename):CLFile(filename){ m_pid = getpid(); }
	CLLog(FILE* fp,int close=0):CLFile(fp,close) { m_pid = getpid(); }
	CLLog():CLFile(){ m_pid = getpid(); }
	~CLLog() {}
};

#endif // !defined(AFX_LOG_H__0F312A86_6152_4BEC_B4A0_CD892946B760__INCLUDED_)
